home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr10 / ehp10.zip / EHP.TXT < prev    next >
Text File  |  1993-06-19  |  12KB  |  261 lines

  1. The EHP editor is an editor written on a HP UNIX workstation.
  2. It has been ported to OS/2 2.0 and I might call this release 1.0.
  3. For the moment the documentation (except this document) is
  4. German.
  5. The package can be compiled using EMX GCC 0.8e or greater. 
  6. Unpack the file using unzip utility. Construct a suitable keyboard
  7. layout using the extracted program km.exe or use the withcoming tasten.inf. 
  8. Enter the path where you stored tasten.inf in the definition of you EHPINIT 
  9. environment variable.
  10.  
  11. Install procedure:
  12. Copy the .exe files and the tasten.inf file
  13. to a directory of your choice (best one contained in your PATH)
  14. and set the environment variable EHPINIT to something like
  15.   set EHPINIT=autoind screen 80x50 keys xxx\tasten.inf
  16. where xxx represents the path where you put the tasten.inf file.
  17. If you don't have installed emx, you have to copy the .DLL-files to 
  18. a directory contained in your LIBPATH statement, e.g. to \OS2\DLL.
  19.  
  20. Changes of version 1.0 compared with latest beta release:
  21.  
  22. - Screen update (curses implementation) tries to work more efficiently.
  23.   This turns out to be a gain e.g. when resizing or moving a window with
  24.   the mouse, or when doing find/replace (command line update got much
  25.   faster!). This is especially an advantage when using EHP in a PM window.
  26.  
  27. Known bugs:
  28. - Since I use emx-0.8f, I can't get the mouse work in a full screen
  29.   session. I tried to solve the problem with small test programs
  30.   written from scratch, but without any success. I just don't want to
  31.   believe that 0.8f is the reason for this, but on the other hand I
  32.   didn't make any changes concerning the mouse.
  33.   If using the mouse in a full screen session is necessary, try to
  34.   compile the package with 0.8e and please report your results to me.
  35. - If the confirmation coming up when leaving EHP by a keyboard command is
  36.   answered with the mouse, EHP gets blocked. Terminate it using CTRL-c.
  37.   I∩m working on it...
  38.  
  39. Things on my TO DO list:
  40. - Double click could mark a word as a block
  41. - Any kind of online help should be provided (e.g. by pressing F1 the
  42.   keyboard layout pops up in a window)
  43. - I'd like to get the damned mouse work in full screen mode!
  44. - A command for matching parentheses would be nice, wouldn't it?
  45. - Pattern matching when doing find seems not to be that difficult.
  46.   Patterns in replace seem more sophisticated.
  47.  
  48. Please report bugs, hints, statements, comments and other feedback to me via
  49. e-Mail to auhl@fzi.de !
  50.  
  51. ------------------------- Initial keyboard layout ---------------------------
  52.  
  53. CTRL-a                  Insert line before current line
  54. CTRL-b                  Block commands:
  55.     - b             mark beginning of block
  56.     - c             copy block to cursor position
  57.     - d             delete block
  58.     - e             end of rectangular block (good for moving comments)
  59.     - f             filter the block (e.g. pass the block through SORT)
  60.     - i             indent block (left or right)
  61.     - m             move block to cursor position
  62.     - n             end of normal block (with line wrap)
  63.     - p             copy contents of paste-buffer to cursor position
  64.     - r             read block from file and insert at cursor position
  65.     - t             cuT block (means: copy it to the paste-buffer)
  66.     - u             unmark block
  67.     - w             write block to file
  68. CTRL-c                  abort repeat function or macro execution,
  69.             insert control code in text or command
  70. CTRL-e                  Edit commands: (perhaps not the right menu, open
  71.             for suggestions)
  72.     - l             load file in current window
  73.     - r             rename file
  74.     - s             save file contained in current window
  75. CTRL-f                  Find / Replace
  76.     - a             Again (repeat last find or replace)
  77.     - f             find
  78.     - r             replace
  79.             Short description of find/replace options:
  80.             number: Find <number>th element / replace <number>
  81.                 elements
  82.             a:      (replace only) replace all occurrences
  83.             b:      search from the beginning of the text
  84.             e:      search from textend upwards ('r' implicit)
  85.             g:      (replace only) global (don't ask for replace)
  86.             i:      ignore upper-/lowercase
  87.             r:      reverse (search backwards)
  88.             u:      (replace only) underline replace expression
  89.                 if and only if the first character of the
  90.                 found search expression is underlined.
  91.                 (without 'u' underlining is done according to
  92.                 the current underline mode, see CTRL-u)
  93.             w:      find/replace words only
  94. CTRL-g                  Goto commands:
  95.     - b             goto beginning of marked block
  96.     - e             goto end of marked block
  97.     - g             goto marker
  98.     - l             last position (stored before CTRL-g, jump to beginning
  99.             or end of file, searching, replacing)
  100.     - n             goto line number
  101.     - s             set marker
  102. CTRL-j                  Join (append following line to the current one)
  103. CTRL-k                  (from the German korrigieren (correct)) insert the
  104.             line deleted last (with CTRL-y) before the current line
  105. CTRL-l                  Refresh (VI-like)
  106. CTRL-n                  Repeat find/replace (same as CTRL-f-a)
  107. CTRL-o                  (VI-like open line) insert line after current line
  108. CTRL-q                  Delete to end-of-line
  109. CTRL-r                  repeat a command sequence n times
  110. CTRL-s                  Set/unset flags
  111.     - a             autoindent
  112.     - b             blockhighlighting
  113.     - c             tabcompression (blanks may be converted to tabs when
  114.             saving the file, this is the default)
  115.     - s             shell mode (when pressing RETURN, the part of the
  116.             current line up to the cursor position is passed to
  117.             the shell, the result of the executed command is
  118.             inserted in the text and marked as a block)
  119.     - t             define tablength (how far the TAB key ought to jump,
  120.             not what number of spaces is converted to a tab in
  121.             the text's file representation)
  122.     - .             create .bak-files when overwriting an existing file
  123. CTRL-t                  Delete word right to the cursor (Borland-like)
  124. CTRL-u                  toggle underline mode (underlined characters are
  125.             represented by _^H<x> where <x> is the underlined
  126.             character).
  127. CTRL-v                  Macro definition/execution
  128. CTRL-w                  Window functions
  129.     - c             close current window
  130.     - d             switch direct to another window by supplying the
  131.             name of the file contained in the window
  132.     - i             switch to window by index (number of the window
  133.             displayed in the lower left corner of each window)
  134.     - m             move window on the screen
  135.     - n             switch to next window
  136.     - o             open new window
  137.     - p             switch to previous window. This operation is symmetric,
  138.             i.e. applied twice, you get to the window where you
  139.             were before.
  140.     - s             change size of current window
  141.     - t             toggle window size (two sizes exist, both of which
  142.             are initially set to full size) 
  143. CTRL-x                  Exit commands
  144.     - n             exit without saving and without executing the load file
  145.             (the load file is a batch file, which can optionally
  146.             be executed when quitting the editor, e.g. it may
  147.             contain the call to MAKE)
  148.     - s             exit with saving all modified files, but without
  149.             executing the load file
  150.     - N             exit without saving, but with loadfile execution.
  151.             The default name for the load file is load.bat in
  152.             the current directory, but it can be modified using
  153.             the environment variable EHPINIT.
  154.     - S             exit with saving all modified files and executing the
  155.             load file.
  156. CTRL-y                  delete the current line (can be undone using CTRL-k)
  157. arr_left                move cursor left one character
  158. arr_right               move cursor right one character
  159. arr_up                  move cursor up one character
  160. arr_down                move cursor down one character
  161. CTRL-arr_left           move cursor left one word
  162. CTRL-arr_right          move cursor right one word
  163. CTRL-arr_up             move window content including cursor one line up
  164. CTRL-arr_down           move window content including cursor one line down
  165. ALT-arr_left            make current line appear in the middle of the window
  166. ALT-arr_up              make current line first line of window
  167. ALT-arr_down            make current line last line of window
  168. HOME                    move cursor to beginning of current line
  169. END                     move cursor to end of current line
  170. CTRL-HOME               move cursor to the first line of the window
  171. CTRL-END                move cursor to the last line of the window
  172. PgUp                    one page up
  173. PgDn                    one page down
  174. CTRL-PgUp               go to beginning of file
  175. CTRL-PgDn               go to end of file
  176. ALT-PgUp                go half a page up
  177. ALT-PgDn                go half a page down
  178. DEL                     delete character on which the cursor stands
  179. Backspace               delete character left to the cursor. If cursor is in
  180.             first column, join current line with the upper line.
  181. Ins                     Toggle insert/overwrite mode
  182.  
  183. --------------------------- Mouse commands ------------------------------
  184.  
  185. Left button:
  186. - click on text
  187.   Set the cursor to the current mouse position and activate that window
  188.   (if not already activated)
  189. - click and move on text
  190.   Mark a normal block (like CTRL-b b and CTRL-b n)
  191. - click on headline and move
  192.   Move the window
  193. - click on lower right corner of window and move
  194.   Resize that window
  195. - click on upper left corner
  196.   Close that window (like CTRL-w c)
  197. - click on upper right corner
  198.   Toggle window size (like CTRL-w t)
  199. - click on arrows in frame
  200.   Scroll text in arrow direction
  201. - click on yes/no-question
  202.   YES
  203.  
  204. Right button:
  205. - click on text with no block marked and no block in PASTE-buffer
  206.   Set the cursor to the current mouse position and activate that window
  207.   (if not already activated)
  208. - click on text with no block marked and block in the PASTE-buffer
  209.   Paste the block from the PASTE-buffer into the text at the current
  210.   mouse position
  211. - click on text with a block marked in the window clicked to
  212.   The marked block is stored in the PASTE-buffer and unmarked
  213. - click and move on text
  214.   Mark a rectangular block (like CTRL-b b and CTRL-b r)
  215. - click on headline
  216.   Push the window into the background
  217. - click on lower right corner of window and move
  218.   Resize that window
  219. - click on upper left corner
  220.   Close that window (like CTRL-w c)
  221. - click on upper right corner
  222.   Toggle window size (like CTRL-w t)
  223. - click on arrows in frame
  224.   Scroll text in arrow direction
  225. - click on yes/no-question
  226.   NO
  227.  
  228. Middle and left: (press middle first, then left, probably three-button-mouse
  229.           is not supported by OS/2 at the moment)
  230. - on text
  231.   move marked block to mouseposition
  232.  
  233. Middle and right: (press middle first, then right, probably three-button-mouse
  234.            is not supported by OS/2 at the moment)
  235. - on text or frame with marked block in window clicked to
  236.   delete marked block in current window
  237.  
  238. ------------------- The environment variable EHPINIT --------------------
  239.  
  240. autoind                 turn autoindent mode on by default
  241. nohelp                  turn off the helpline
  242. noshowblock             turn off blockhighlighting
  243. nobak                   turn off creation of .bak files
  244. deftab <n>              set tabsize to n
  245. screen CxL              switch to screen size CxL (C=columns, L=lines)
  246.             NOTE: be sure, your video card supports that mode
  247. keys <f>                keyboard file is stored in <f>
  248. conffile <f>            config file storing information about the session,
  249.             like open files, window sizes and macros, is stored
  250.             in file <f>. If not supplied, a file called config.sys
  251.             if opened in the current directory.
  252. loadfile <f>            The loadfile (explained at CTRL-x) is named <f>
  253.             If this option is omitted, the file is looked for
  254.             under the name load.cmd in the current directory.
  255.  
  256.  
  257.  
  258.  
  259. Enjoy,
  260. Axel (auhl@fzi.de)
  261.